<!-- 用户积分 -->
<template>
	<view class="container">
		<text class="detail" @tap="navTo('/pages/center/integral/integralRecord')">积分明细</text>
		<view class="nowShallBox">
			<view class="item">
				<view class="icon">
					<image src="../../../static/images/center/1qdwdqd.png" mode=""></image>
					<text>{{count}}</text>
				</view>
				<text class="label">当前拥有</text>
			</view>
		</view>
		<button class="btn withdraw" type="default" @tap="navTo('/mall/IntegralMall/IntegralMall')">积分商城</button>
	</view>
</template>

<script>
	import {
		shellList
	} from "@/api/shell.js"
	export default {
		data() {
			return {
				count: uni.getStorageSync("userInfo").integral
			}
		},
		onLoad() {
		},
		methods: {
			navTo(url) { 
				uni.navigateTo({
					url: url 
				})
			}

		}
	}
</script>

<style lang="scss" scoped>
	.container {
		position: relative;
		text-align: center;
		padding-top: 40%;

		.detail {
			position: absolute;
			right: 30rpx;
			top: 20rpx;
			width: 140rpx;
			height: 62rpx;
			line-height: 62rpx;
			text-align: center;
			font-size: 24rpx;
			font-weight: bold;
			color: rgba(255, 255, 255, 1);
			background: $theme-color;
			border-radius: 31rpx;
		}

		.nowShallBox {
			display: flex;
			justify-content: center;

			.item {
				width: 50%;

				.icon {
					display: flex;
					justify-content: center;
					align-items: center;

					image {
						width: 60rpx;
						height: 40rpx;
						margin-right: 10rpx;
					}

					text {
						font-size: 50rpx;
						font-weight: bold;
						color: rgba(51, 51, 51, 1);
					}
				}

				.label {
					margin-top: 20rpx;
					font-size: 26rpx;
					font-weight: 400;
					color: rgba(51, 51, 51, 1);
				}
			}
		}

		.btn {
			position: fixed;
			left: 75rpx;
			width: 600rpx;
			height: 80rpx;
			line-height: 80rpx;
			font-size: 32rpx;
			font-weight: bold;
			color: rgba(255, 255, 255, 1);
			background: $theme-color;
			border-radius: 40rpx;
		}

		.withdraw {
			bottom: 380rpx;
		}
	}
</style>

